package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackInfoVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.atguigu.tingshu.vo.album.TrackStatMqVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    Page<TrackListVo> findUserTrackPage(Page<TrackListVo> trackListVoPage, Long userId,TrackInfoQuery trackInfoQuery);

    void saveTrackInfo(Long userId, TrackInfoVo trackInfoVo);

    void updateTrackInfo(Long id, TrackInfoVo trackInfoVo);

    void removeTrackInfo(Long id);

    Page<AlbumTrackListVo> getAlbumTrackPage(Page<AlbumTrackListVo> pageInfo, Long albumId, Long userId);

    List<TrackInfo> getCheckTrackIdList(Long trackId,Integer count);

    List<Map<String,Object>> findUserTrackPaidList(Long trackId);

    void updateTrackStat(TrackStatMqVo trackStatMqVo);
}
